package io.renren.modules.yst.dao;

import com.baomidou.mybatisplus.core.conditions.Wrapper;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.core.toolkit.Constants;
import io.renren.modules.yst.vo.CheckRecordVo;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
@Mapper
public interface CheckRecordVoDao extends BaseMapper<CheckRecordVo> {
    /**
     * mybatis-plus多表查询
     * @param page
     * @param wrapper
     * @return
     */

    //参数加上@Param(Constants.WRAPPER),xml里加上${ew.customSqlSegment}可以实现复杂条件检索查询
    IPage<CheckRecordVo> findByPage(IPage<CheckRecordVo> page, @Param(Constants.WRAPPER) Wrapper<CheckRecordVo> wrapper);


    IPage<CheckRecordVo> findByPageForManager(IPage<CheckRecordVo> page, @Param(Constants.WRAPPER) Wrapper<CheckRecordVo> wrapper);

}
